package priv.hehe.util;

/**
 * 通信协议对象
 * @author Administrator
 *
 */
public class ResultObject {
	private String msg;
	private Integer status;
	private Object data;
	public String getMsg() {
		return msg;
	}
	public ResultObject setMsg(String msg) {
		this.msg = msg;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ResultObject setStatus(boolean status) {
		this.status = status?1:2;
		return this;
	}
	public Object getData() {
		return data;
	}
	public ResultObject setData(Object data) {
		this.data = data;
		return this;
	}
	public static ResultObject getResult(){
		return new ResultObject();
	}
}
